package com.driving.code.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * @Author: 喜欢编程的代先生
 * 日期: 2021/8/17
 * 时间: 17：14
 * 描述: 文件上传的配置类！
 * 内容: 动态配置文件上传的路径信息
 */
@Component
@ConfigurationProperties(prefix = "uploadfile")
public class UploadConfig {
    private String version;
    private String profile;

    public UploadConfig() {
    }

    public UploadConfig(String version, String profile) {
        this.version = version;
        this.profile = profile;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    @Override
    public String toString() {
        return "UploadConfig{" +
                "version='" + version + '\'' +
                ", profile='" + profile + '\'' +
                '}';
    }
}
